<?php
	include("../include.php");
	
	header("Content-type: application/json; charset=utf-8");
	$HMid = mysql_real_escape_string($_REQUEST["filter"]["filters"][0]["value"]);
	$verb = $_SERVER["REQUEST_METHOD"];
		
	if($verb == "GET")
	{
			$arr = array();
			$sql = sprintf("select `id` as `CVid`, `MaCV`, `TenCV`, `DVT`, `KhoiLuong`, `MaHM` as HMid from `khoiluongmoithau` where MaHM = '%s'", $HMid);
			$rs = mysql_query($sql);
			$temp="";
			while($obj = mysql_fetch_object($rs))
			{
					$arr[] = $obj;					
			}
			echo "{\"data\":" . json_encode($arr , JSON_UNESCAPED_UNICODE) . "}";
		
	}
?>